import req from './test.js'; //连接接口文件
// svg
export const search = function(e) {
  return req('get', `/search?sk=${e.sk}&type=${e.type}`); //post方法以及传参    qwe是字段   e是参数
};
export const typeList = function() {
  return req('get', '/typeList'); //get方法以及传参
};
export const tongji = function(type, imgUrl) {
  return req('get', `/tongji?t=${type}&i=${imgUrl}`); //get方法以及传参
};
export const tongjiTotal = function() {
  return req('get', `/tongjiTotal`); //get方法以及传参
};
//design
export const typeListDesign = function() {
  return req('get', '/typeListDesign'); //get方法以及传参
};
export const searchDesign = function(e) {
  return req('get', `/searchDesign?sk=${e.sk}&folder=${e.folder}&order=${e.order}`);
};
export const recordDesign = function(e) {
  return req('get', `/recordDesign?name=${e.name}&folder=${e.folder}&type=${e.type}`);
};
export const getDownloadCountDesign = function(folder) {
  return req('get', `/getDownloadCountDesign?folder=${folder}`);
};
